package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng
 * @since 2018-08-06
 */
@TableName("ticket_num")
public class TicketNum extends Model<TicketNum> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 车票剩余数量
     */
    private Integer remainingnum;


    @TableField("digitalcode")
    private String digitalcode;

    @TableField("ticketdate")
    private String ticketdate;

    @TableField("orderid")
    private  Integer orderid;

    public String getTicketdate() {
        return ticketdate;
    }


    public String getDigitalcode() {
        return digitalcode;
    }

    public void setDigitalcode(String digitalcode) {
        this.digitalcode = digitalcode;
    }

    /**

     * 线路id
     */
    private Integer lineid;

    public Integer getOrderid() {
        return orderid;
    }

    public void setOrderid(Integer orderid) {
        this.orderid = orderid;
    }

    public void setTicketdate(String ticketdate) {
        this.ticketdate = ticketdate;
    }

    /**
     * 车票生成日期
     */
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRemainingnum() {
        return remainingnum;
    }

    public void setRemainingnum(Integer remainingnum) {
        this.remainingnum = remainingnum;
    }

    public Integer getLineid() {
        return lineid;
    }

    public void setLineid(Integer lineid) {
        this.lineid = lineid;
    }


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TicketNum{" +
        "id=" + id +
        ", remainingnum=" + remainingnum +
        ", lineid=" + lineid +
        ", ticketdate=" + ticketdate +
                ", orderid=" + orderid +
                ", digitalcode=" + digitalcode +
        "}";
    }
}
